﻿using System;
using System.ComponentModel;

namespace Inaction.DbSchame
{
    [Serializable]
    [DisplayName("外键")]
    public class ForeignKey : NameObject
    {
        #region 属性
        [DisplayName("所属表")]
        public Table Table { get; internal set; }
        [DisplayName("外键列")]
        public Column Column { get; internal set; }
        [DisplayName("参照的表")]
        public Table ReferenceTable { get; internal set; }
        #endregion

        public override string ToString()
        {
            return "ForeignKey:" + Name;
        }
    }
}
